<script src="../include.js"></script>
<script>
    test(() => {
        const INVALID_STATE_ERR = 11;
        try {
            const xhr = new XMLHttpRequest();
            xhr.open("GET", "data:text/plain,", true);
            xhr.send();
            xhr.send();
        }
        catch (e) {
            if (e.code === INVALID_STATE_ERR)
                println("PASS");
        }
    });
</script>
